export default class Constant {


    static init() {

        /**
         *  FRAMEPOINT
         */
        FRAMEPOINT_TOPLEFT = 0

        FRAMEPOINT_TOP = 1

        FRAMEPOINT_TOPRIGHT = 2

        FRAMEPOINT_LEFT = 3

        FRAMEPOINT_CENTER = 4

        FRAMEPOINT_RIGHT = 5

        FRAMEPOINT_BOTTOMLEFT = 6

        FRAMEPOINT_BOTTOM = 7

        FRAMEPOINT_BOTTOMRIGHT = 8

        /**
         *  FRAME_EVENT
         */
        FRAMEEVENT_CONTROL_CLICK = 1

        FRAMEEVENT_MOUSE_ENTER = 2

        FRAMEEVENT_MOUSE_LEAVE = 3

        FRAMEEVENT_MOUSE_UP = 4

        FRAMEEVENT_MOUSE_DOWN = 5

        FRAMEEVENT_MOUSE_WHEEL = 6

        // FRAME_FOCUS_ENTER = FRAME_MOUSE_ENTER

        // FRAME_FOCUS_LEAVE = FRAME_MOUSE_LEAVE

        FRAMEEVENT_CHECKBOX_CHECKED = 7

        FRAMEEVENT_CHECKBOX_UNCHECKED = 8

        FRAMEEVENT_EDITBOX_TEXT_CHANGED = 9

        FRAMEEVENT_POPUPMENU_ITEM_CHANGED = 10

        // FRAME_POPUPMENU_ITEM_CHANGED = 11

        FRAMEEVENT_MOUSE_DOUBLECLICK = 12

        // FRAME_SPRITE_ANIM_UPDATE = 13

        /**
         *  TEXT_ALIGN
         */
        TEXTALIGN_TOPLEFT = 11 // 文本左上对齐
        TEXTALIGN_TOP = 17 // 文本上对齐
        TEXTALIGN_TOPRIGHT = 37 //文本右上对齐
        TEXTALIGN_CENTER = 18 // 文本对齐中
        TEXTALIGN_LEFT = 10 //文本对齐左
        TEXTALIGN_RIGHT = 34 //文本对齐右
        TEXTALIGN_BOTTOMLEFT = 12 //文本左下对齐
        TEXTALIGN_BOTTOM = 20 //文本下对齐
        TEXTALIGN_BOTTOMRIGHT = 36 //文本右下对齐

    }


}
